using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.CompilerServices;
using Microsoft.CSharp.RuntimeBinder;
using System.Linq.Expressions;

namespace Alicanto.Helpers
{
    internal class Binding
    {
        internal static CallSiteBinder CreateBinaryBinder(ExpressionType binaryType)
        {
            return Binder.BinaryOperation(
                    CSharpBinderFlags.None,
                    binaryType,
                    Settings.CONTEXT,
                    new CSharpArgumentInfo[] {
                        CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null),
                        CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null)
                    }
                );
        }
    }
}
